/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.triumphsys.icici.cmeeting.portlet.service.base;

import com.liferay.counter.service.CounterLocalService;

import com.liferay.portal.kernel.annotation.BeanReference;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.util.OrderByComparator;
import com.liferay.portal.service.ResourceLocalService;
import com.liferay.portal.service.ResourceService;
import com.liferay.portal.service.UserLocalService;
import com.liferay.portal.service.UserService;
import com.liferay.portal.service.persistence.ResourcePersistence;
import com.liferay.portal.service.persistence.UserPersistence;

import com.triumphsys.icici.cmeeting.portlet.model.CMEntity;
import com.triumphsys.icici.cmeeting.portlet.service.CMBranchLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMCompanyLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMControlGroupLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMCreditRatingLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMEntityLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMForumLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMHolidayLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMIndustryLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMMeetingLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMOthersProposalLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMParameterLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMPoliciesProposalLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMPostProposalLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMProposalLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMProposalTypeLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMRegionLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMReportingProposalLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMRoleLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMSanctionProposalLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMSubForumLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMUserLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.CMValuationProposalLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.COEPropoalTypeLocalService;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMBranchPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMCompanyPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMControlGroupPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMCreditRatingPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMEntityPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMForumPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMHolidayPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMIndustryPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMMeetingPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMOthersProposalPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMParameterPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMPoliciesProposalPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMPostProposalPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMProposalPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMProposalTypePersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMRegionPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMReportingProposalPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMRolePersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMSanctionProposalPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMSubForumPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMUserPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.CMValuationProposalPersistence;
import com.triumphsys.icici.cmeeting.portlet.service.persistence.COEPropoalTypePersistence;

import java.util.List;

import javax.sql.DataSource;

/**
 * The base implementation of the c m entity local service.
 *
 * <p>
 * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.triumphsys.icici.cmeeting.portlet.service.impl.CMEntityLocalServiceImpl}.
 * </p>
 *
 * <p>
 * Never modify or reference this class directly. Always use {@link com.triumphsys.icici.cmeeting.portlet.service.CMEntityLocalServiceUtil} to access the c m entity local service.
 * </p>
 *
 * @author Triumphsys
 * @see com.triumphsys.icici.cmeeting.portlet.service.impl.CMEntityLocalServiceImpl
 * @see com.triumphsys.icici.cmeeting.portlet.service.CMEntityLocalServiceUtil
 * @generated
 */
public abstract class CMEntityLocalServiceBaseImpl
	implements CMEntityLocalService {
	/**
	 * Adds the c m entity to the database. Also notifies the appropriate model listeners.
	 *
	 * @param cmEntity the c m entity to add
	 * @return the c m entity that was added
	 * @throws SystemException if a system exception occurred
	 */
	public CMEntity addCMEntity(CMEntity cmEntity) throws SystemException {
		cmEntity.setNew(true);

		return cmEntityPersistence.update(cmEntity, false);
	}

	/**
	 * Creates a new c m entity with the primary key. Does not add the c m entity to the database.
	 *
	 * @param entityId the primary key for the new c m entity
	 * @return the new c m entity
	 */
	public CMEntity createCMEntity(long entityId) {
		return cmEntityPersistence.create(entityId);
	}

	/**
	 * Deletes the c m entity with the primary key from the database. Also notifies the appropriate model listeners.
	 *
	 * @param entityId the primary key of the c m entity to delete
	 * @throws PortalException if a c m entity with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	public void deleteCMEntity(long entityId)
		throws PortalException, SystemException {
		cmEntityPersistence.remove(entityId);
	}

	/**
	 * Deletes the c m entity from the database. Also notifies the appropriate model listeners.
	 *
	 * @param cmEntity the c m entity to delete
	 * @throws SystemException if a system exception occurred
	 */
	public void deleteCMEntity(CMEntity cmEntity) throws SystemException {
		cmEntityPersistence.remove(cmEntity);
	}

	/**
	 * Performs a dynamic query on the database and returns the matching rows.
	 *
	 * @param dynamicQuery the dynamic query to search with
	 * @return the matching rows
	 * @throws SystemException if a system exception occurred
	 */
	@SuppressWarnings("rawtypes")
	public List dynamicQuery(DynamicQuery dynamicQuery)
		throws SystemException {
		return cmEntityPersistence.findWithDynamicQuery(dynamicQuery);
	}

	/**
	 * Performs a dynamic query on the database and returns a range of the matching rows.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	 * </p>
	 *
	 * @param dynamicQuery the dynamic query to search with
	 * @param start the lower bound of the range of model instances to return
	 * @param end the upper bound of the range of model instances to return (not inclusive)
	 * @return the range of matching rows
	 * @throws SystemException if a system exception occurred
	 */
	@SuppressWarnings("rawtypes")
	public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
		throws SystemException {
		return cmEntityPersistence.findWithDynamicQuery(dynamicQuery, start, end);
	}

	/**
	 * Performs a dynamic query on the database and returns an ordered range of the matching rows.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	 * </p>
	 *
	 * @param dynamicQuery the dynamic query to search with
	 * @param start the lower bound of the range of model instances to return
	 * @param end the upper bound of the range of model instances to return (not inclusive)
	 * @param orderByComparator the comparator to order the results by
	 * @return the ordered range of matching rows
	 * @throws SystemException if a system exception occurred
	 */
	@SuppressWarnings("rawtypes")
	public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
		OrderByComparator orderByComparator) throws SystemException {
		return cmEntityPersistence.findWithDynamicQuery(dynamicQuery, start,
			end, orderByComparator);
	}

	/**
	 * Counts the number of rows that match the dynamic query.
	 *
	 * @param dynamicQuery the dynamic query to search with
	 * @return the number of rows that match the dynamic query
	 * @throws SystemException if a system exception occurred
	 */
	public long dynamicQueryCount(DynamicQuery dynamicQuery)
		throws SystemException {
		return cmEntityPersistence.countWithDynamicQuery(dynamicQuery);
	}

	/**
	 * Gets the c m entity with the primary key.
	 *
	 * @param entityId the primary key of the c m entity to get
	 * @return the c m entity
	 * @throws PortalException if a c m entity with the primary key could not be found
	 * @throws SystemException if a system exception occurred
	 */
	public CMEntity getCMEntity(long entityId)
		throws PortalException, SystemException {
		return cmEntityPersistence.findByPrimaryKey(entityId);
	}

	/**
	 * Gets a range of all the c m entities.
	 *
	 * <p>
	 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	 * </p>
	 *
	 * @param start the lower bound of the range of c m entities to return
	 * @param end the upper bound of the range of c m entities to return (not inclusive)
	 * @return the range of c m entities
	 * @throws SystemException if a system exception occurred
	 */
	public List<CMEntity> getCMEntities(int start, int end)
		throws SystemException {
		return cmEntityPersistence.findAll(start, end);
	}

	/**
	 * Gets the number of c m entities.
	 *
	 * @return the number of c m entities
	 * @throws SystemException if a system exception occurred
	 */
	public int getCMEntitiesCount() throws SystemException {
		return cmEntityPersistence.countAll();
	}

	/**
	 * Updates the c m entity in the database. Also notifies the appropriate model listeners.
	 *
	 * @param cmEntity the c m entity to update
	 * @return the c m entity that was updated
	 * @throws SystemException if a system exception occurred
	 */
	public CMEntity updateCMEntity(CMEntity cmEntity) throws SystemException {
		cmEntity.setNew(false);

		return cmEntityPersistence.update(cmEntity, true);
	}

	/**
	 * Updates the c m entity in the database. Also notifies the appropriate model listeners.
	 *
	 * @param cmEntity the c m entity to update
	 * @param merge whether to merge the c m entity with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
	 * @return the c m entity that was updated
	 * @throws SystemException if a system exception occurred
	 */
	public CMEntity updateCMEntity(CMEntity cmEntity, boolean merge)
		throws SystemException {
		cmEntity.setNew(false);

		return cmEntityPersistence.update(cmEntity, merge);
	}

	/**
	 * Gets the c m holiday local service.
	 *
	 * @return the c m holiday local service
	 */
	public CMHolidayLocalService getCMHolidayLocalService() {
		return cmHolidayLocalService;
	}

	/**
	 * Sets the c m holiday local service.
	 *
	 * @param cmHolidayLocalService the c m holiday local service
	 */
	public void setCMHolidayLocalService(
		CMHolidayLocalService cmHolidayLocalService) {
		this.cmHolidayLocalService = cmHolidayLocalService;
	}

	/**
	 * Gets the c m holiday persistence.
	 *
	 * @return the c m holiday persistence
	 */
	public CMHolidayPersistence getCMHolidayPersistence() {
		return cmHolidayPersistence;
	}

	/**
	 * Sets the c m holiday persistence.
	 *
	 * @param cmHolidayPersistence the c m holiday persistence
	 */
	public void setCMHolidayPersistence(
		CMHolidayPersistence cmHolidayPersistence) {
		this.cmHolidayPersistence = cmHolidayPersistence;
	}

	/**
	 * Gets the c m parameter local service.
	 *
	 * @return the c m parameter local service
	 */
	public CMParameterLocalService getCMParameterLocalService() {
		return cmParameterLocalService;
	}

	/**
	 * Sets the c m parameter local service.
	 *
	 * @param cmParameterLocalService the c m parameter local service
	 */
	public void setCMParameterLocalService(
		CMParameterLocalService cmParameterLocalService) {
		this.cmParameterLocalService = cmParameterLocalService;
	}

	/**
	 * Gets the c m parameter persistence.
	 *
	 * @return the c m parameter persistence
	 */
	public CMParameterPersistence getCMParameterPersistence() {
		return cmParameterPersistence;
	}

	/**
	 * Sets the c m parameter persistence.
	 *
	 * @param cmParameterPersistence the c m parameter persistence
	 */
	public void setCMParameterPersistence(
		CMParameterPersistence cmParameterPersistence) {
		this.cmParameterPersistence = cmParameterPersistence;
	}

	/**
	 * Gets the c m user local service.
	 *
	 * @return the c m user local service
	 */
	public CMUserLocalService getCMUserLocalService() {
		return cmUserLocalService;
	}

	/**
	 * Sets the c m user local service.
	 *
	 * @param cmUserLocalService the c m user local service
	 */
	public void setCMUserLocalService(CMUserLocalService cmUserLocalService) {
		this.cmUserLocalService = cmUserLocalService;
	}

	/**
	 * Gets the c m user persistence.
	 *
	 * @return the c m user persistence
	 */
	public CMUserPersistence getCMUserPersistence() {
		return cmUserPersistence;
	}

	/**
	 * Sets the c m user persistence.
	 *
	 * @param cmUserPersistence the c m user persistence
	 */
	public void setCMUserPersistence(CMUserPersistence cmUserPersistence) {
		this.cmUserPersistence = cmUserPersistence;
	}

	/**
	 * Gets the c m credit rating local service.
	 *
	 * @return the c m credit rating local service
	 */
	public CMCreditRatingLocalService getCMCreditRatingLocalService() {
		return cmCreditRatingLocalService;
	}

	/**
	 * Sets the c m credit rating local service.
	 *
	 * @param cmCreditRatingLocalService the c m credit rating local service
	 */
	public void setCMCreditRatingLocalService(
		CMCreditRatingLocalService cmCreditRatingLocalService) {
		this.cmCreditRatingLocalService = cmCreditRatingLocalService;
	}

	/**
	 * Gets the c m credit rating persistence.
	 *
	 * @return the c m credit rating persistence
	 */
	public CMCreditRatingPersistence getCMCreditRatingPersistence() {
		return cmCreditRatingPersistence;
	}

	/**
	 * Sets the c m credit rating persistence.
	 *
	 * @param cmCreditRatingPersistence the c m credit rating persistence
	 */
	public void setCMCreditRatingPersistence(
		CMCreditRatingPersistence cmCreditRatingPersistence) {
		this.cmCreditRatingPersistence = cmCreditRatingPersistence;
	}

	/**
	 * Gets the c o e propoal type local service.
	 *
	 * @return the c o e propoal type local service
	 */
	public COEPropoalTypeLocalService getCOEPropoalTypeLocalService() {
		return coePropoalTypeLocalService;
	}

	/**
	 * Sets the c o e propoal type local service.
	 *
	 * @param coePropoalTypeLocalService the c o e propoal type local service
	 */
	public void setCOEPropoalTypeLocalService(
		COEPropoalTypeLocalService coePropoalTypeLocalService) {
		this.coePropoalTypeLocalService = coePropoalTypeLocalService;
	}

	/**
	 * Gets the c o e propoal type persistence.
	 *
	 * @return the c o e propoal type persistence
	 */
	public COEPropoalTypePersistence getCOEPropoalTypePersistence() {
		return coePropoalTypePersistence;
	}

	/**
	 * Sets the c o e propoal type persistence.
	 *
	 * @param coePropoalTypePersistence the c o e propoal type persistence
	 */
	public void setCOEPropoalTypePersistence(
		COEPropoalTypePersistence coePropoalTypePersistence) {
		this.coePropoalTypePersistence = coePropoalTypePersistence;
	}

	/**
	 * Gets the c m industry local service.
	 *
	 * @return the c m industry local service
	 */
	public CMIndustryLocalService getCMIndustryLocalService() {
		return cmIndustryLocalService;
	}

	/**
	 * Sets the c m industry local service.
	 *
	 * @param cmIndustryLocalService the c m industry local service
	 */
	public void setCMIndustryLocalService(
		CMIndustryLocalService cmIndustryLocalService) {
		this.cmIndustryLocalService = cmIndustryLocalService;
	}

	/**
	 * Gets the c m industry persistence.
	 *
	 * @return the c m industry persistence
	 */
	public CMIndustryPersistence getCMIndustryPersistence() {
		return cmIndustryPersistence;
	}

	/**
	 * Sets the c m industry persistence.
	 *
	 * @param cmIndustryPersistence the c m industry persistence
	 */
	public void setCMIndustryPersistence(
		CMIndustryPersistence cmIndustryPersistence) {
		this.cmIndustryPersistence = cmIndustryPersistence;
	}

	/**
	 * Gets the c m company local service.
	 *
	 * @return the c m company local service
	 */
	public CMCompanyLocalService getCMCompanyLocalService() {
		return cmCompanyLocalService;
	}

	/**
	 * Sets the c m company local service.
	 *
	 * @param cmCompanyLocalService the c m company local service
	 */
	public void setCMCompanyLocalService(
		CMCompanyLocalService cmCompanyLocalService) {
		this.cmCompanyLocalService = cmCompanyLocalService;
	}

	/**
	 * Gets the c m company persistence.
	 *
	 * @return the c m company persistence
	 */
	public CMCompanyPersistence getCMCompanyPersistence() {
		return cmCompanyPersistence;
	}

	/**
	 * Sets the c m company persistence.
	 *
	 * @param cmCompanyPersistence the c m company persistence
	 */
	public void setCMCompanyPersistence(
		CMCompanyPersistence cmCompanyPersistence) {
		this.cmCompanyPersistence = cmCompanyPersistence;
	}

	/**
	 * Gets the c m control group local service.
	 *
	 * @return the c m control group local service
	 */
	public CMControlGroupLocalService getCMControlGroupLocalService() {
		return cmControlGroupLocalService;
	}

	/**
	 * Sets the c m control group local service.
	 *
	 * @param cmControlGroupLocalService the c m control group local service
	 */
	public void setCMControlGroupLocalService(
		CMControlGroupLocalService cmControlGroupLocalService) {
		this.cmControlGroupLocalService = cmControlGroupLocalService;
	}

	/**
	 * Gets the c m control group persistence.
	 *
	 * @return the c m control group persistence
	 */
	public CMControlGroupPersistence getCMControlGroupPersistence() {
		return cmControlGroupPersistence;
	}

	/**
	 * Sets the c m control group persistence.
	 *
	 * @param cmControlGroupPersistence the c m control group persistence
	 */
	public void setCMControlGroupPersistence(
		CMControlGroupPersistence cmControlGroupPersistence) {
		this.cmControlGroupPersistence = cmControlGroupPersistence;
	}

	/**
	 * Gets the c m role local service.
	 *
	 * @return the c m role local service
	 */
	public CMRoleLocalService getCMRoleLocalService() {
		return cmRoleLocalService;
	}

	/**
	 * Sets the c m role local service.
	 *
	 * @param cmRoleLocalService the c m role local service
	 */
	public void setCMRoleLocalService(CMRoleLocalService cmRoleLocalService) {
		this.cmRoleLocalService = cmRoleLocalService;
	}

	/**
	 * Gets the c m role persistence.
	 *
	 * @return the c m role persistence
	 */
	public CMRolePersistence getCMRolePersistence() {
		return cmRolePersistence;
	}

	/**
	 * Sets the c m role persistence.
	 *
	 * @param cmRolePersistence the c m role persistence
	 */
	public void setCMRolePersistence(CMRolePersistence cmRolePersistence) {
		this.cmRolePersistence = cmRolePersistence;
	}

	/**
	 * Gets the c m branch local service.
	 *
	 * @return the c m branch local service
	 */
	public CMBranchLocalService getCMBranchLocalService() {
		return cmBranchLocalService;
	}

	/**
	 * Sets the c m branch local service.
	 *
	 * @param cmBranchLocalService the c m branch local service
	 */
	public void setCMBranchLocalService(
		CMBranchLocalService cmBranchLocalService) {
		this.cmBranchLocalService = cmBranchLocalService;
	}

	/**
	 * Gets the c m branch persistence.
	 *
	 * @return the c m branch persistence
	 */
	public CMBranchPersistence getCMBranchPersistence() {
		return cmBranchPersistence;
	}

	/**
	 * Sets the c m branch persistence.
	 *
	 * @param cmBranchPersistence the c m branch persistence
	 */
	public void setCMBranchPersistence(CMBranchPersistence cmBranchPersistence) {
		this.cmBranchPersistence = cmBranchPersistence;
	}

	/**
	 * Gets the c m region local service.
	 *
	 * @return the c m region local service
	 */
	public CMRegionLocalService getCMRegionLocalService() {
		return cmRegionLocalService;
	}

	/**
	 * Sets the c m region local service.
	 *
	 * @param cmRegionLocalService the c m region local service
	 */
	public void setCMRegionLocalService(
		CMRegionLocalService cmRegionLocalService) {
		this.cmRegionLocalService = cmRegionLocalService;
	}

	/**
	 * Gets the c m region persistence.
	 *
	 * @return the c m region persistence
	 */
	public CMRegionPersistence getCMRegionPersistence() {
		return cmRegionPersistence;
	}

	/**
	 * Sets the c m region persistence.
	 *
	 * @param cmRegionPersistence the c m region persistence
	 */
	public void setCMRegionPersistence(CMRegionPersistence cmRegionPersistence) {
		this.cmRegionPersistence = cmRegionPersistence;
	}

	/**
	 * Gets the c m forum local service.
	 *
	 * @return the c m forum local service
	 */
	public CMForumLocalService getCMForumLocalService() {
		return cmForumLocalService;
	}

	/**
	 * Sets the c m forum local service.
	 *
	 * @param cmForumLocalService the c m forum local service
	 */
	public void setCMForumLocalService(CMForumLocalService cmForumLocalService) {
		this.cmForumLocalService = cmForumLocalService;
	}

	/**
	 * Gets the c m forum persistence.
	 *
	 * @return the c m forum persistence
	 */
	public CMForumPersistence getCMForumPersistence() {
		return cmForumPersistence;
	}

	/**
	 * Sets the c m forum persistence.
	 *
	 * @param cmForumPersistence the c m forum persistence
	 */
	public void setCMForumPersistence(CMForumPersistence cmForumPersistence) {
		this.cmForumPersistence = cmForumPersistence;
	}

	/**
	 * Gets the c m sub forum local service.
	 *
	 * @return the c m sub forum local service
	 */
	public CMSubForumLocalService getCMSubForumLocalService() {
		return cmSubForumLocalService;
	}

	/**
	 * Sets the c m sub forum local service.
	 *
	 * @param cmSubForumLocalService the c m sub forum local service
	 */
	public void setCMSubForumLocalService(
		CMSubForumLocalService cmSubForumLocalService) {
		this.cmSubForumLocalService = cmSubForumLocalService;
	}

	/**
	 * Gets the c m sub forum persistence.
	 *
	 * @return the c m sub forum persistence
	 */
	public CMSubForumPersistence getCMSubForumPersistence() {
		return cmSubForumPersistence;
	}

	/**
	 * Sets the c m sub forum persistence.
	 *
	 * @param cmSubForumPersistence the c m sub forum persistence
	 */
	public void setCMSubForumPersistence(
		CMSubForumPersistence cmSubForumPersistence) {
		this.cmSubForumPersistence = cmSubForumPersistence;
	}

	/**
	 * Gets the c m sanction proposal local service.
	 *
	 * @return the c m sanction proposal local service
	 */
	public CMSanctionProposalLocalService getCMSanctionProposalLocalService() {
		return cmSanctionProposalLocalService;
	}

	/**
	 * Sets the c m sanction proposal local service.
	 *
	 * @param cmSanctionProposalLocalService the c m sanction proposal local service
	 */
	public void setCMSanctionProposalLocalService(
		CMSanctionProposalLocalService cmSanctionProposalLocalService) {
		this.cmSanctionProposalLocalService = cmSanctionProposalLocalService;
	}

	/**
	 * Gets the c m sanction proposal persistence.
	 *
	 * @return the c m sanction proposal persistence
	 */
	public CMSanctionProposalPersistence getCMSanctionProposalPersistence() {
		return cmSanctionProposalPersistence;
	}

	/**
	 * Sets the c m sanction proposal persistence.
	 *
	 * @param cmSanctionProposalPersistence the c m sanction proposal persistence
	 */
	public void setCMSanctionProposalPersistence(
		CMSanctionProposalPersistence cmSanctionProposalPersistence) {
		this.cmSanctionProposalPersistence = cmSanctionProposalPersistence;
	}

	/**
	 * Gets the c m reporting proposal local service.
	 *
	 * @return the c m reporting proposal local service
	 */
	public CMReportingProposalLocalService getCMReportingProposalLocalService() {
		return cmReportingProposalLocalService;
	}

	/**
	 * Sets the c m reporting proposal local service.
	 *
	 * @param cmReportingProposalLocalService the c m reporting proposal local service
	 */
	public void setCMReportingProposalLocalService(
		CMReportingProposalLocalService cmReportingProposalLocalService) {
		this.cmReportingProposalLocalService = cmReportingProposalLocalService;
	}

	/**
	 * Gets the c m reporting proposal persistence.
	 *
	 * @return the c m reporting proposal persistence
	 */
	public CMReportingProposalPersistence getCMReportingProposalPersistence() {
		return cmReportingProposalPersistence;
	}

	/**
	 * Sets the c m reporting proposal persistence.
	 *
	 * @param cmReportingProposalPersistence the c m reporting proposal persistence
	 */
	public void setCMReportingProposalPersistence(
		CMReportingProposalPersistence cmReportingProposalPersistence) {
		this.cmReportingProposalPersistence = cmReportingProposalPersistence;
	}

	/**
	 * Gets the c m post proposal local service.
	 *
	 * @return the c m post proposal local service
	 */
	public CMPostProposalLocalService getCMPostProposalLocalService() {
		return cmPostProposalLocalService;
	}

	/**
	 * Sets the c m post proposal local service.
	 *
	 * @param cmPostProposalLocalService the c m post proposal local service
	 */
	public void setCMPostProposalLocalService(
		CMPostProposalLocalService cmPostProposalLocalService) {
		this.cmPostProposalLocalService = cmPostProposalLocalService;
	}

	/**
	 * Gets the c m post proposal persistence.
	 *
	 * @return the c m post proposal persistence
	 */
	public CMPostProposalPersistence getCMPostProposalPersistence() {
		return cmPostProposalPersistence;
	}

	/**
	 * Sets the c m post proposal persistence.
	 *
	 * @param cmPostProposalPersistence the c m post proposal persistence
	 */
	public void setCMPostProposalPersistence(
		CMPostProposalPersistence cmPostProposalPersistence) {
		this.cmPostProposalPersistence = cmPostProposalPersistence;
	}

	/**
	 * Gets the c m meeting local service.
	 *
	 * @return the c m meeting local service
	 */
	public CMMeetingLocalService getCMMeetingLocalService() {
		return cmMeetingLocalService;
	}

	/**
	 * Sets the c m meeting local service.
	 *
	 * @param cmMeetingLocalService the c m meeting local service
	 */
	public void setCMMeetingLocalService(
		CMMeetingLocalService cmMeetingLocalService) {
		this.cmMeetingLocalService = cmMeetingLocalService;
	}

	/**
	 * Gets the c m meeting persistence.
	 *
	 * @return the c m meeting persistence
	 */
	public CMMeetingPersistence getCMMeetingPersistence() {
		return cmMeetingPersistence;
	}

	/**
	 * Sets the c m meeting persistence.
	 *
	 * @param cmMeetingPersistence the c m meeting persistence
	 */
	public void setCMMeetingPersistence(
		CMMeetingPersistence cmMeetingPersistence) {
		this.cmMeetingPersistence = cmMeetingPersistence;
	}

	/**
	 * Gets the c m proposal type local service.
	 *
	 * @return the c m proposal type local service
	 */
	public CMProposalTypeLocalService getCMProposalTypeLocalService() {
		return cmProposalTypeLocalService;
	}

	/**
	 * Sets the c m proposal type local service.
	 *
	 * @param cmProposalTypeLocalService the c m proposal type local service
	 */
	public void setCMProposalTypeLocalService(
		CMProposalTypeLocalService cmProposalTypeLocalService) {
		this.cmProposalTypeLocalService = cmProposalTypeLocalService;
	}

	/**
	 * Gets the c m proposal type persistence.
	 *
	 * @return the c m proposal type persistence
	 */
	public CMProposalTypePersistence getCMProposalTypePersistence() {
		return cmProposalTypePersistence;
	}

	/**
	 * Sets the c m proposal type persistence.
	 *
	 * @param cmProposalTypePersistence the c m proposal type persistence
	 */
	public void setCMProposalTypePersistence(
		CMProposalTypePersistence cmProposalTypePersistence) {
		this.cmProposalTypePersistence = cmProposalTypePersistence;
	}

	/**
	 * Gets the c m entity local service.
	 *
	 * @return the c m entity local service
	 */
	public CMEntityLocalService getCMEntityLocalService() {
		return cmEntityLocalService;
	}

	/**
	 * Sets the c m entity local service.
	 *
	 * @param cmEntityLocalService the c m entity local service
	 */
	public void setCMEntityLocalService(
		CMEntityLocalService cmEntityLocalService) {
		this.cmEntityLocalService = cmEntityLocalService;
	}

	/**
	 * Gets the c m entity persistence.
	 *
	 * @return the c m entity persistence
	 */
	public CMEntityPersistence getCMEntityPersistence() {
		return cmEntityPersistence;
	}

	/**
	 * Sets the c m entity persistence.
	 *
	 * @param cmEntityPersistence the c m entity persistence
	 */
	public void setCMEntityPersistence(CMEntityPersistence cmEntityPersistence) {
		this.cmEntityPersistence = cmEntityPersistence;
	}

	/**
	 * Gets the c m others proposal local service.
	 *
	 * @return the c m others proposal local service
	 */
	public CMOthersProposalLocalService getCMOthersProposalLocalService() {
		return cmOthersProposalLocalService;
	}

	/**
	 * Sets the c m others proposal local service.
	 *
	 * @param cmOthersProposalLocalService the c m others proposal local service
	 */
	public void setCMOthersProposalLocalService(
		CMOthersProposalLocalService cmOthersProposalLocalService) {
		this.cmOthersProposalLocalService = cmOthersProposalLocalService;
	}

	/**
	 * Gets the c m others proposal persistence.
	 *
	 * @return the c m others proposal persistence
	 */
	public CMOthersProposalPersistence getCMOthersProposalPersistence() {
		return cmOthersProposalPersistence;
	}

	/**
	 * Sets the c m others proposal persistence.
	 *
	 * @param cmOthersProposalPersistence the c m others proposal persistence
	 */
	public void setCMOthersProposalPersistence(
		CMOthersProposalPersistence cmOthersProposalPersistence) {
		this.cmOthersProposalPersistence = cmOthersProposalPersistence;
	}

	/**
	 * Gets the c m valuation proposal local service.
	 *
	 * @return the c m valuation proposal local service
	 */
	public CMValuationProposalLocalService getCMValuationProposalLocalService() {
		return cmValuationProposalLocalService;
	}

	/**
	 * Sets the c m valuation proposal local service.
	 *
	 * @param cmValuationProposalLocalService the c m valuation proposal local service
	 */
	public void setCMValuationProposalLocalService(
		CMValuationProposalLocalService cmValuationProposalLocalService) {
		this.cmValuationProposalLocalService = cmValuationProposalLocalService;
	}

	/**
	 * Gets the c m valuation proposal persistence.
	 *
	 * @return the c m valuation proposal persistence
	 */
	public CMValuationProposalPersistence getCMValuationProposalPersistence() {
		return cmValuationProposalPersistence;
	}

	/**
	 * Sets the c m valuation proposal persistence.
	 *
	 * @param cmValuationProposalPersistence the c m valuation proposal persistence
	 */
	public void setCMValuationProposalPersistence(
		CMValuationProposalPersistence cmValuationProposalPersistence) {
		this.cmValuationProposalPersistence = cmValuationProposalPersistence;
	}

	/**
	 * Gets the c m policies proposal local service.
	 *
	 * @return the c m policies proposal local service
	 */
	public CMPoliciesProposalLocalService getCMPoliciesProposalLocalService() {
		return cmPoliciesProposalLocalService;
	}

	/**
	 * Sets the c m policies proposal local service.
	 *
	 * @param cmPoliciesProposalLocalService the c m policies proposal local service
	 */
	public void setCMPoliciesProposalLocalService(
		CMPoliciesProposalLocalService cmPoliciesProposalLocalService) {
		this.cmPoliciesProposalLocalService = cmPoliciesProposalLocalService;
	}

	/**
	 * Gets the c m policies proposal persistence.
	 *
	 * @return the c m policies proposal persistence
	 */
	public CMPoliciesProposalPersistence getCMPoliciesProposalPersistence() {
		return cmPoliciesProposalPersistence;
	}

	/**
	 * Sets the c m policies proposal persistence.
	 *
	 * @param cmPoliciesProposalPersistence the c m policies proposal persistence
	 */
	public void setCMPoliciesProposalPersistence(
		CMPoliciesProposalPersistence cmPoliciesProposalPersistence) {
		this.cmPoliciesProposalPersistence = cmPoliciesProposalPersistence;
	}

	/**
	 * Gets the c m proposal local service.
	 *
	 * @return the c m proposal local service
	 */
	public CMProposalLocalService getCMProposalLocalService() {
		return cmProposalLocalService;
	}

	/**
	 * Sets the c m proposal local service.
	 *
	 * @param cmProposalLocalService the c m proposal local service
	 */
	public void setCMProposalLocalService(
		CMProposalLocalService cmProposalLocalService) {
		this.cmProposalLocalService = cmProposalLocalService;
	}

	/**
	 * Gets the c m proposal persistence.
	 *
	 * @return the c m proposal persistence
	 */
	public CMProposalPersistence getCMProposalPersistence() {
		return cmProposalPersistence;
	}

	/**
	 * Sets the c m proposal persistence.
	 *
	 * @param cmProposalPersistence the c m proposal persistence
	 */
	public void setCMProposalPersistence(
		CMProposalPersistence cmProposalPersistence) {
		this.cmProposalPersistence = cmProposalPersistence;
	}

	/**
	 * Gets the counter local service.
	 *
	 * @return the counter local service
	 */
	public CounterLocalService getCounterLocalService() {
		return counterLocalService;
	}

	/**
	 * Sets the counter local service.
	 *
	 * @param counterLocalService the counter local service
	 */
	public void setCounterLocalService(CounterLocalService counterLocalService) {
		this.counterLocalService = counterLocalService;
	}

	/**
	 * Gets the resource local service.
	 *
	 * @return the resource local service
	 */
	public ResourceLocalService getResourceLocalService() {
		return resourceLocalService;
	}

	/**
	 * Sets the resource local service.
	 *
	 * @param resourceLocalService the resource local service
	 */
	public void setResourceLocalService(
		ResourceLocalService resourceLocalService) {
		this.resourceLocalService = resourceLocalService;
	}

	/**
	 * Gets the resource remote service.
	 *
	 * @return the resource remote service
	 */
	public ResourceService getResourceService() {
		return resourceService;
	}

	/**
	 * Sets the resource remote service.
	 *
	 * @param resourceService the resource remote service
	 */
	public void setResourceService(ResourceService resourceService) {
		this.resourceService = resourceService;
	}

	/**
	 * Gets the resource persistence.
	 *
	 * @return the resource persistence
	 */
	public ResourcePersistence getResourcePersistence() {
		return resourcePersistence;
	}

	/**
	 * Sets the resource persistence.
	 *
	 * @param resourcePersistence the resource persistence
	 */
	public void setResourcePersistence(ResourcePersistence resourcePersistence) {
		this.resourcePersistence = resourcePersistence;
	}

	/**
	 * Gets the user local service.
	 *
	 * @return the user local service
	 */
	public UserLocalService getUserLocalService() {
		return userLocalService;
	}

	/**
	 * Sets the user local service.
	 *
	 * @param userLocalService the user local service
	 */
	public void setUserLocalService(UserLocalService userLocalService) {
		this.userLocalService = userLocalService;
	}

	/**
	 * Gets the user remote service.
	 *
	 * @return the user remote service
	 */
	public UserService getUserService() {
		return userService;
	}

	/**
	 * Sets the user remote service.
	 *
	 * @param userService the user remote service
	 */
	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	/**
	 * Gets the user persistence.
	 *
	 * @return the user persistence
	 */
	public UserPersistence getUserPersistence() {
		return userPersistence;
	}

	/**
	 * Sets the user persistence.
	 *
	 * @param userPersistence the user persistence
	 */
	public void setUserPersistence(UserPersistence userPersistence) {
		this.userPersistence = userPersistence;
	}

	/**
	 * Performs an SQL query.
	 *
	 * @param sql the sql query to perform
	 */
	protected void runSQL(String sql) throws SystemException {
		try {
			DataSource dataSource = cmEntityPersistence.getDataSource();

			SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
					sql, new int[0]);

			sqlUpdate.update();
		}
		catch (Exception e) {
			throw new SystemException(e);
		}
	}

	@BeanReference(type = CMHolidayLocalService.class)
	protected CMHolidayLocalService cmHolidayLocalService;
	@BeanReference(type = CMHolidayPersistence.class)
	protected CMHolidayPersistence cmHolidayPersistence;
	@BeanReference(type = CMParameterLocalService.class)
	protected CMParameterLocalService cmParameterLocalService;
	@BeanReference(type = CMParameterPersistence.class)
	protected CMParameterPersistence cmParameterPersistence;
	@BeanReference(type = CMUserLocalService.class)
	protected CMUserLocalService cmUserLocalService;
	@BeanReference(type = CMUserPersistence.class)
	protected CMUserPersistence cmUserPersistence;
	@BeanReference(type = CMCreditRatingLocalService.class)
	protected CMCreditRatingLocalService cmCreditRatingLocalService;
	@BeanReference(type = CMCreditRatingPersistence.class)
	protected CMCreditRatingPersistence cmCreditRatingPersistence;
	@BeanReference(type = COEPropoalTypeLocalService.class)
	protected COEPropoalTypeLocalService coePropoalTypeLocalService;
	@BeanReference(type = COEPropoalTypePersistence.class)
	protected COEPropoalTypePersistence coePropoalTypePersistence;
	@BeanReference(type = CMIndustryLocalService.class)
	protected CMIndustryLocalService cmIndustryLocalService;
	@BeanReference(type = CMIndustryPersistence.class)
	protected CMIndustryPersistence cmIndustryPersistence;
	@BeanReference(type = CMCompanyLocalService.class)
	protected CMCompanyLocalService cmCompanyLocalService;
	@BeanReference(type = CMCompanyPersistence.class)
	protected CMCompanyPersistence cmCompanyPersistence;
	@BeanReference(type = CMControlGroupLocalService.class)
	protected CMControlGroupLocalService cmControlGroupLocalService;
	@BeanReference(type = CMControlGroupPersistence.class)
	protected CMControlGroupPersistence cmControlGroupPersistence;
	@BeanReference(type = CMRoleLocalService.class)
	protected CMRoleLocalService cmRoleLocalService;
	@BeanReference(type = CMRolePersistence.class)
	protected CMRolePersistence cmRolePersistence;
	@BeanReference(type = CMBranchLocalService.class)
	protected CMBranchLocalService cmBranchLocalService;
	@BeanReference(type = CMBranchPersistence.class)
	protected CMBranchPersistence cmBranchPersistence;
	@BeanReference(type = CMRegionLocalService.class)
	protected CMRegionLocalService cmRegionLocalService;
	@BeanReference(type = CMRegionPersistence.class)
	protected CMRegionPersistence cmRegionPersistence;
	@BeanReference(type = CMForumLocalService.class)
	protected CMForumLocalService cmForumLocalService;
	@BeanReference(type = CMForumPersistence.class)
	protected CMForumPersistence cmForumPersistence;
	@BeanReference(type = CMSubForumLocalService.class)
	protected CMSubForumLocalService cmSubForumLocalService;
	@BeanReference(type = CMSubForumPersistence.class)
	protected CMSubForumPersistence cmSubForumPersistence;
	@BeanReference(type = CMSanctionProposalLocalService.class)
	protected CMSanctionProposalLocalService cmSanctionProposalLocalService;
	@BeanReference(type = CMSanctionProposalPersistence.class)
	protected CMSanctionProposalPersistence cmSanctionProposalPersistence;
	@BeanReference(type = CMReportingProposalLocalService.class)
	protected CMReportingProposalLocalService cmReportingProposalLocalService;
	@BeanReference(type = CMReportingProposalPersistence.class)
	protected CMReportingProposalPersistence cmReportingProposalPersistence;
	@BeanReference(type = CMPostProposalLocalService.class)
	protected CMPostProposalLocalService cmPostProposalLocalService;
	@BeanReference(type = CMPostProposalPersistence.class)
	protected CMPostProposalPersistence cmPostProposalPersistence;
	@BeanReference(type = CMMeetingLocalService.class)
	protected CMMeetingLocalService cmMeetingLocalService;
	@BeanReference(type = CMMeetingPersistence.class)
	protected CMMeetingPersistence cmMeetingPersistence;
	@BeanReference(type = CMProposalTypeLocalService.class)
	protected CMProposalTypeLocalService cmProposalTypeLocalService;
	@BeanReference(type = CMProposalTypePersistence.class)
	protected CMProposalTypePersistence cmProposalTypePersistence;
	@BeanReference(type = CMEntityLocalService.class)
	protected CMEntityLocalService cmEntityLocalService;
	@BeanReference(type = CMEntityPersistence.class)
	protected CMEntityPersistence cmEntityPersistence;
	@BeanReference(type = CMOthersProposalLocalService.class)
	protected CMOthersProposalLocalService cmOthersProposalLocalService;
	@BeanReference(type = CMOthersProposalPersistence.class)
	protected CMOthersProposalPersistence cmOthersProposalPersistence;
	@BeanReference(type = CMValuationProposalLocalService.class)
	protected CMValuationProposalLocalService cmValuationProposalLocalService;
	@BeanReference(type = CMValuationProposalPersistence.class)
	protected CMValuationProposalPersistence cmValuationProposalPersistence;
	@BeanReference(type = CMPoliciesProposalLocalService.class)
	protected CMPoliciesProposalLocalService cmPoliciesProposalLocalService;
	@BeanReference(type = CMPoliciesProposalPersistence.class)
	protected CMPoliciesProposalPersistence cmPoliciesProposalPersistence;
	@BeanReference(type = CMProposalLocalService.class)
	protected CMProposalLocalService cmProposalLocalService;
	@BeanReference(type = CMProposalPersistence.class)
	protected CMProposalPersistence cmProposalPersistence;
	@BeanReference(type = CounterLocalService.class)
	protected CounterLocalService counterLocalService;
	@BeanReference(type = ResourceLocalService.class)
	protected ResourceLocalService resourceLocalService;
	@BeanReference(type = ResourceService.class)
	protected ResourceService resourceService;
	@BeanReference(type = ResourcePersistence.class)
	protected ResourcePersistence resourcePersistence;
	@BeanReference(type = UserLocalService.class)
	protected UserLocalService userLocalService;
	@BeanReference(type = UserService.class)
	protected UserService userService;
	@BeanReference(type = UserPersistence.class)
	protected UserPersistence userPersistence;
}